import Layout from '@/layout'

const distributorHelpCenterRouter = {
  path: '/distributor/help-center',
  component: Layout,
  redirect: 'noRedirect',
  alwaysShow: true,
  name: 'DistributorHelpCenter',
  meta: {
    title: '帮助中心',
    roles: ['distributor', 'admin']
  },
  children: [
    {
      path: 'platform-document',
      component: () => import('@/views/distributor/help-center/platform-document'),
      name: 'DistributorPlatformDocument',
      meta: { title: '说明文档(TBD)', noCache: false }
    },
    {
      path: 'system-help',
      component: () => import('@/views/distributor/help-center/system-help'),
      name: 'DistributorSystemHelp',
      meta: { title: '系统帮助', noCache: false }
    },
    {
      path: 'sales-help',
      component: () => import('@/views/distributor/help-center/sales-help'),
      name: 'DistributorSalesHelp',
      meta: { title: '销售帮助', noCache: false }
    },
    {
      path: 'others-help',
      component: () => import('@/views/distributor/help-center/others-help'),
      name: 'DistributorOthersHelp',
      meta: { title: '其它帮助', noCache: false }
    },
    {
      path: 'platform-strategy',
      component: () => import('@/views/distributor/help-center/platform-strategy'),
      name: 'DistributorPlatformStrategy',
      meta: { title: '平台策略', noCache: false }
    }
  ]
}

export default distributorHelpCenterRouter
